/**
 * 
 */
package com.feonix.designPattern.FactoryMethod.sample1.idcard;

import com.feonix.designPattern.FactoryMethod.sample1.framework.Product;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.FactoryMethod.sample1.idcard
 * @Author Feonixzw
 * @CreateDate 2018年1月26日
 */
public class IdCardProduct extends Product {
	
	private String owner;
	
	private String serial;

	IdCardProduct(String owner, String serial) {
		System.out.println("制作了"+owner +"("+serial+")"+"的id卡");
		this.owner = owner;
		this.serial = serial;
	}

	/* (non-Javadoc)
	 * @see com.feonix.designPattern.FactoryMethod.sample1.framework.Product#use()
	 */
	@Override
	public void use() {
		System.out.println("使用了"+owner+"("+serial+")" +"的id卡");
	}

	public String getOwner() {
		return owner;
	}

	public String getSerial() {
		return serial;
	}
	
}
